package com.fenxiangtech.mall.dao;

import com.fenxiangtech.mall.model.OrderProduct;
import com.fenxiangtech.mall.model.qc.OrderProductQC;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

@Mapper
@Repository
public interface OrderProductDAO{

    int insertOrderProduct(OrderProduct orderProduct);

    int updateOrderProduct(OrderProduct orderProduct);

    List<OrderProduct> listOrderProduct(OrderProductQC orderProduct);

    Long countOrderProduct(OrderProductQC orderProduct);

    int insertBatch(@Param("list") List<OrderProduct> orderProducts);

    int deleteOrderProductById(Long id);

}